﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="BCPhieuChiNganHangTheoKH.aspx.cs" Inherits="BCPhieuChiNganHangTheoKH" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div class="panel panel-success margin">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        Báo cáo phiếu chi ngân hàng theo khách hàng</h3>
                </div>
            </div>
            <div style="margin: 5px;">
                <div class="panel panel-default">
                    <asp:HiddenField ID="hdID" runat="server" />
                    <asp:HiddenField ID="hdTuNgay" runat="server" />
                    <asp:HiddenField ID="hdDenNgay" runat="server" />
                    <div style="margin: 5px;">
                        <div class="panel panel-default">
                            <asp:DropDownList ID="dlThang" runat="server" Width="150px" AutoPostBack="true" CssClass="form-control"
                                OnSelectedIndexChanged="dlThang_SelectedIndexChanged">
                            </asp:DropDownList>
                            <asp:DropDownList ID="dlNam" runat="server" Width="110px" CssClass="form-control">
                            </asp:DropDownList>
                            <asp:TextBox ID="txtTuNgay" runat="server" placeholder="Từ ngày" Visible="true" Width="100px"
                                CssClass="form-control"></asp:TextBox>&nbsp;
                            <asp:TextBox ID="txtDenNgay" runat="server" placeholder="Đến ngày" AutoPostBack="true"
                                Visible="true" Width="100px" CssClass="form-control"></asp:TextBox>
                            <cc1:CalendarExtender ID="CalendarExtender11" runat="server" TargetControlID="txtTuNgay"
                                Format="dd/MM/yyyy">
                            </cc1:CalendarExtender>
                            <cc1:CalendarExtender ID="CalendarExtender111" runat="server" TargetControlID="txtDenNgay"
                                Format="dd/MM/yyyy">
                            </cc1:CalendarExtender>
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender9" runat="server" FilterType="Custom,Numbers"
                                TargetControlID="txtTuNgay" ValidChars="/-" />
                            <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender10" runat="server" FilterType="Custom,Numbers"
                                TargetControlID="txtDenNgay" ValidChars="/-" />
                            <asp:DropDownList ID="dlnhacungcap" runat="server" DataValueField="IDs" Width="250px"
                                CssClass="form-control" DataTextField="TenNCC">
                            </asp:DropDownList>
                            <asp:DropDownList ID="dltaikhoan" Width="250px" CssClass="form-control" DataValueField="ids"
                                DataTextField="nganhang" runat="server">
                            </asp:DropDownList>
                            <asp:Button ID="btnXem" CssClass="btn btn-warning" runat="server" Text="Xem dữ liệu"
                                OnClick="btnXem_Click" />
                                <asp:Button ID="btnIn" CssClass="btn btn-primary" runat="server" Text="Xuất báo cáo"
                        OnClick="btnIn_Click" />
                                <div style="width: 100%; margin-top: 10px; overflow: auto;" class="wrapper">
                            <div style="width: 100%; max-height: 300px;">
                            <asp:GridView ID="GVPhieuChi" runat="server" AutoGenerateColumns="false" BackColor="White" Visible="false"
                                ShowFooter="true" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                                CellPadding="1" EmptyDataText="Không có dữ liệu nào" EnableModelValidation="True"
                                CssClass="form-control withall" Width="99%">
                                <Columns>
                                    <%--<asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"
                                ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="lbXoa" runat="server" Width="20px" Height="20px" ImageUrl="~/img/delete-24.png"
                                        OnClientClick="return confirm('Bạn chắc chắn muốn xóa ?')" CommandArgument='<%#Eval("IDs")%>'
                                        Text="Xóa" CommandName="Del" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="50px"
                                ItemStyle-Width="50px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="lbSua" runat="server" Width="15px" Height="15px" ImageUrl="~/img/edit.ico"
                                        CommandArgument='<%#Eval("IDs")%>' Text="Sửa" CommandName="Select" />
                                </ItemTemplate>
                            </asp:TemplateField>--%>
                                    <asp:BoundField DataField="number" ItemStyle-CssClass="padding" HeaderText="STT"
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                    <asp:BoundField DataField="ngaythang" ItemStyle-CssClass="padding" HeaderText="Ngày chi"
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                     <asp:BoundField DataField="noidung" ItemStyle-CssClass="padding" HeaderText="Nội dung"
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField DataField="TenNCC" ItemStyle-CssClass="padding" HeaderText="Bên nhận tiền"
                                        ItemStyle-HorizontalAlign="Left" />
                                    <asp:BoundField DataField="sotien" DataFormatString="{0:0,0}" ItemStyle-CssClass="padding"
                                        HeaderText="Số tiền" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="right" />
                                    <asp:BoundField DataField="taikhoan" ItemStyle-CssClass="padding" HeaderText="Tài khoản-Ngân hàng"
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />
                                    <%--  <asp:BoundField DataField="PC" ItemStyle-CssClass="padding" HeaderText="Hình thức chi"
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" />--%>
                                    <asp:BoundField DataField="sopc" ItemStyle-CssClass="padding" HeaderText="Số PC"
                                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
                                </Columns>
                                <FooterStyle BackColor="White" ForeColor="#000066" Font-Bold="True" HorizontalAlign="Right" />
                                <HeaderStyle BackColor="White" Font-Bold="True" ForeColor="Black" Height="30px" />
                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                <RowStyle BackColor="White" ForeColor="#000066" Height="30px" />
                                <SelectedRowStyle BackColor="Lavender" Font-Bold="false" />
                            </asp:GridView>
                            </div></div>
                            <div style="margin: 5px;">
                                <asp:Button ID="Button1" Visible="false" runat="server" Text="Đầu" CssClass="btn btn-primary" OnClick="Button1_Click" />
                                <asp:Button ID="Button2" runat="server" Style="margin-left: 5px;" Text="Trước" CssClass="btn btn-primary" Visible="false"
                                    OnClick="Button2_Click" />
                                <asp:Button ID="Button3" runat="server" Style="margin-left: 5px;" Text="Sau" CssClass="btn btn-warning" Visible="false"
                                    OnClick="Button3_Click" />
                            </div>
                        </div>
                    </div>
                </div>
        </ContentTemplate>
         <Triggers>
            <asp:PostBackTrigger ControlID="btnIn" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>


